home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-06-16 | 2.2 KB | 90 lines | [TEXT/MPS ] |
- #
- # SCSI Inquiry Sample
- # Copyright © 1994, Apple Computer Inc. All rights reserved.
- #
- # This Makefile builds the SCSI Inquiry sample as a "fat" binary
- # that runs native on 68000 and Power PC systems. It requires the MPW
- # 3.3 distribution from the Macintosh on Risc SDK
- #
- Src = ":Src:"
- Obj = ":Obj:"
- PPCObjects = ∂
- {Obj}SCSIInquiry.c.po
-
- M68Objects = ∂
- {Obj}SCSIInquiry.c.mo
-
- #
- # Directory dependencies. "Everything in the {Obj} directory depends on
- # something in the {Src} directory." Note: you can throw away the contents
- # of the {Obj} directory if you want to rebuild from scratch.
- #
- {Obj} ƒ {Src}
-
- #
- # Compiler dependencies -- common to all compilations. The idea here is that all
- # sources are stored in the {Src} subdirectory, and all objects and code resources
- # output by the linker or Rez are stored in the {Obj} subdirectory. Note that
- # we define MPW to simplify portability: this sample compiles under Think C, MPW
- # 3.3, and Macintosh on Risc (FastTrack). It has not been tested on MetroWerks.
- #
- .c.po ƒ .c ∂
- {Src}SCSIInquiry.h
- PPCC -sym on -appleext on -w off -d MPW ∂
- -o {TargDir}{Default}.c.po ∂
- {DepDir}{Default}.c
-
- .c.mo ƒ .c ∂
- {Src}SCSIInquiry.h
- C {COptions} -d MPW ∂
- -o {TargDir}{Default}.c.mo ∂
- {DepDir}{Default}.c
-
- #
- # Build the application.
- #
- "SCSIInquiry" ƒƒ ∂
- MakeFile ∂
- {Src}SCSIInquiry.h
- Rez ∂
- {Src}SCSIInquiry.r ∂
- -append ∂
- -t APPL ∂
- -i "{CIncludes}" ∂
- -i "{RIncludes}" ∂
- -d __powerc=1 ∂
- -o {targ}
-
- "SCSIInquiry" ƒƒ ∂
- MakeFile ∂
- {M68Objects}
- Link ∂
- -t APPL ∂
- {M68Objects} ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"Interface.o ∂
- -o {targ}
-
- "SCSIInquiry" ƒƒ ∂
- "{Obj}SCSIInquiry.xcoff"
- MakePEF ∂
- {deps} ∂
- -l InterfaceLib.xcoff=InterfaceLib ∂
- -l StdCLib.xcoff=StdCLib ∂
- -l MathLib.xcoff=MathLib ∂
- -o {targ} ∂
- -ft APPL -fc '????'
-
- "{Obj}SCSIInquiry.xcoff" ƒ ∂
- {PPCObjects}
- PPCLink ∂
- {PPCObjects} ∂
- "{PPCLibraries}"StdCLib.xcoff ∂
- "{PPCLibraries}"MathLib.xcoff ∂
- "{PPCLibraries}"InterfaceLib.xcoff ∂
- "{PPCLibraries}"PPCCRuntime.o ∂
- -main main ∂
- -o {targ}
-
-
-